package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.RecruitList;
import com.xmy.cultivate.entity.TrialForm;
import com.xmy.cultivate.entity.TryJob;
import com.xmy.cultivate.mapper.TrialFormMapper;
import com.xmy.cultivate.service.ITrialFormService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 试用表 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-06-10
 */
@Service
public class TrialFormServiceImpl extends ServiceImpl<TrialFormMapper, TrialForm> implements ITrialFormService {
    @Autowired
    TrialFormMapper trialFormMapper;


    @Override
    public IPage<TrialForm> queryTrialList(IPage<TrialForm> page , String startDate, String endDate, String type, String name, String schoolId) {

        return trialFormMapper.queryTrialList(page ,startDate, endDate,type, name, schoolId);
    }

    @Override
    public List<TrialForm> trialPassRate(String startDate, String endDate, String departmentId, String stationsId, String labourId, String type, String yearPart, String quarterNum, String dateType, String theirType, String subjectsId) {
        return trialFormMapper.trialPassRate(startDate, endDate, departmentId, stationsId, labourId, type, yearPart, quarterNum, dateType, theirType, subjectsId);
    }

    @Override
    public Map<String, Object> trialFormDate() {
        return trialFormMapper.trialFormDate();
    }
    @Override
    public Map<String, Object> trialChangeDate() {
        return trialFormMapper.trialChangeDate();
    }

    @Override
    public IPage<TrialForm> trialPassRateDetails(IPage<?> page, String startDate, String endDate, String departmentId, String stationsId, String labourId, String type, String schoolCrossId, String yearPart, String quarterNum, String dateType, String recruitStatus, String theirType, String subjectsId) {
        return trialFormMapper.trialPassRateDetails(page, startDate, endDate, departmentId, stationsId, labourId, type, schoolCrossId, yearPart, quarterNum, dateType, recruitStatus, theirType, subjectsId);
    }
}
